package com.sanshui.base;

/**
 * @author Administrator
 */
public class ResultUtils {

    public static <T> BaseResponse<T> success(T data){
        return new BaseResponse<>(200,data,"ok");
    }

    public static <T> BaseResponse<T> error(int code,String errorMessage){
        return new BaseResponse<>(code,null,errorMessage);
    }
}
